
package es.udc.emarketapp.emarket.model.seller.dao;

import es.udc.emarketapp.emarket.model.client.vo.ClientVO;
import es.udc.emarketapp.emarket.model.seller.vo.SellerVO;
import es.udc.emarketapp.emarket.model.user.dao.SQLUserDAO;
import es.udc.fbellas.j2ee.util.exceptions.InstanceNotFoundException;
import es.udc.fbellas.j2ee.util.exceptions.InternalErrorException;
import java.sql.Connection;
import java.util.Calendar;
import java.util.List;


public interface SQLSellerDAO extends SQLUserDAO{
    
    public SellerVO create(Connection connection, SellerVO sellerVO)
    	throws InternalErrorException;
    
   /*
    public boolean exists(Connection connection, String idComprador)
    	throws InternalErrorException;
    
    public boolean exists(Connection connection, String idComprador,
	    String pass) throws InternalErrorException;

     public boolean existsNifCif(Connection connection, String nifCif)
             throws InternalErrorException;
    */

    public SellerVO findById(Connection connection, String idVendedor)
    	throws InternalErrorException, InstanceNotFoundException;
    
    public SellerVO findById(Connection connection, String idVendedor,
	    String pass) throws InternalErrorException,
            InstanceNotFoundException;

   /*
    
    public void updateEMail(Connection connection, String idComprador, String email)
    	throws InternalErrorException;
    
    public void updatePassword(Connection connection, String idComprador,
	    String pass) throws InternalErrorException;
    
    public void updateAddress(Connection connection, String idComprador,
	    String cir, String ciudad, String cp, String prov)
            throws InternalErrorException;
 
    public void updatePais(Connection connection, String idComprador,
	    String pais) throws InternalErrorException;
    
    public void updateTel1(Connection connection, String idComprador,
	    String tel1) throws InternalErrorException;
    
    public void updateTel2(Connection connection, String idComprador,
	    String tel2) throws InternalErrorException;
    
    public boolean isValid(Connection connection, String idComprador)
		throws InstanceNotFoundException, InternalErrorException;

    public void invalidate(Connection connection, String idComprador)
		throws InstanceNotFoundException, InternalErrorException;

    public void remove(Connection connection, String idComprador)
    	throws InstanceNotFoundException, InternalErrorException;
    
    */

     public List<SellerVO> findAll(Connection connection, int startIndex,
	    int count) throws InternalErrorException;

    public List<SellerVO> findByPais(Connection connection, String pais,
	    int startIndex, int count) throws InternalErrorException;


}
